﻿namespace CollisionDetection.Models
{
    using System;
    using IS.Projecto.Modelo;

    public class Collision
    {
        #region Fields

        private TimeSpan _start;
        private Horario _horario1;
        private Horario _horario2;
        private int _duration;
        private int _collisions;
        private DateTime _data;

        #endregion

        #region Properties

        public TimeSpan Start
        {
            get { return _start; }
            set
            {
                _start = value;
            }
        }

        public TimeSpan End
        {
            get { return _start.Add(new TimeSpan(0, _duration, 0)); }
        }

        public Horario Horario1
        {
            get { return _horario1; }
            set { _horario1 = value; }
        }

        public Horario Horario2
        {
            get { return _horario2; }
            set { _horario2 = value; }
        }

        public int Duration
        {
            get { return _duration; }
            set { _duration = value; }
        }

        public int Collisions
        {
            get { return _collisions; }
            set { _collisions = value; }
        }

        public DateTime Data
        {
            get { return _data; }
            set { _data = value; }
        }

        #endregion
    }
}